import { createApp } from "vue";
import App from "./App.vue";
import pinia from "./store/index";
import Antd from "ant-design-vue";
import router from "./router";
import "@/utils/permission";
import "ant-design-vue/dist/reset.css";
import "@/styles/index.scss";
// import formCreate from "@form-create/ant-design-vue";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import directiveInject from "./plugins/directiveInject";
import components from "./plugins/components";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("cn");
import website from "./plugins/website";
const app = createApp(App);
pinia.use(piniaPluginPersistedstate);

// 屏蔽错误信息
app.config.errorHandler = () => null;

// 屏蔽黄色警告信息
app.config.warnHandler = () => null;
app
  .use(directiveInject)
  .use(website)
  .use(components)
  .use(pinia)
  .use(Antd)
  .use(router);
app.mount("#app");
